<?php get_header(); ?>
<!-- Mainbar -->
<div class="mainbar">
    <div class="mainbar_top">
        <div class="mainbar_bottom">
            <div class="mainbar_inner">
            <?php if (have_posts()) : ?>		
				<?php while (have_posts()) : the_post(); ?>
                
                
                <div class="post <?php if(is_home() && $post==$posts[0] && !is_paged()) echo ' firstpost';?>">
                    <div class="post_date">
                        <div class="post_date_top"><?php the_time('d')?></div>
                        <div class="post_date_bottom"><?php the_time('M') ?></div>                                            
                    </div>
                    <h2 class="post_header" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Enlace permanente a <?php the_title(); ?>"><?php the_title(); ?></a></h2>
                    <div class="post_line"></div>
                    <div class="post_content">
                    	<?php the_content('Leer más...'); ?> 
                    </div>
                    <div class="post_data">
                    Escrito por <?php the_author() ?> em <?php the_category(',') ?> e tem <?php comments_popup_link('Nenhum comentário', '(1) Comentário', '(%) Comentários'); ?> <?php edit_post_link('Editar',''); ?>
                    </div>  
                </div>
        
		<?php comments_template(); ?>
		
		<?php endwhile; else: ?>

		<p><?php _e('Desculpe, Não há mensagens com esse critério.'); ?></p>

		<?php endif; ?>
                </div>
        </div>
    </div>
</div>  <!-- End of Mainbar -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>